<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>后台管理页面</title>
    <style>
      body {
        margin: 0;
        font-family: Arial, sans-serif;
      }
      .container {
        display: flex;
        height: 100vh;
      }
      .sidebar {
        width: 250px;
        background-color: #333;
        color: white;
        padding: 20px;
        box-sizing: border-box;
      }
      .sidebar h2 {
        text-align: center;
        margin-bottom: 20px;
      }
      .sidebar a {
        display: block;
        color: white;
        padding: 10px;
        text-decoration: none;
        border-bottom: 1px solid #444;
      }
      .sidebar a:hover {
        background-color: #555;
      }
      .content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
      }
      .content-header {
        background-color: #007bff;
        color: white;
        padding: 0 15px;
        border-bottom: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        height: 60px;
        box-sizing: border-box;
      }
      .content-main {
        flex-grow: 1;
        padding: 20px;
        overflow: auto;
      }
      iframe {
        width: 100%;
        height: 100%;
        border: none;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <!-- 左侧菜单栏 -->
      <div class="sidebar">
        <h2>管理菜单</h2>
        <a href="dashboard.html" target="contentFrame">仪表盘</a>
        <a href="users.html" target="contentFrame">用户管理</a>
        <a href="settings.html" target="contentFrame">设置</a>
      </div>

      <!-- 右侧内容区域 -->
      <div class="content">
        <!-- 右侧头部 -->
        <div class="content-header">
          <h3>仪表盘</h3>
          <!-- 可以在这里添加更多头部内容，如操作按钮、搜索框等 -->
        </div>

        <!-- 右侧主要内容 -->
        <div class="content-main">
          <iframe name="contentFrame" src="dashboard.html"></iframe>
        </div>
      </div>
    </div>
  </body>
</html>
